package com.bbyl.im.bean;

/**
 * 获取消息列表
 * Created by zhx on 2017/8/21.
 */

public class ChatMsgListRequest extends BaseRequest {

    //1为拉取新消息(服务端会查询大于time的消息)，2为拉取历史消息(服务端会查询小于time的消息)
    private int type;

    //起始点时间，unix时间戳，其值来源于消息监听接口 0829-改为消息id 0130改回addtime
    private String msgId;

    //对方用户的uid，非必传，如果不传，则按顺序返回点聊消息或群消息
    private int target;

    //	群id，拉取某个特定的群消息时必传
    private int gid;

    //私教 - room id
    private int room_id;


    public int getRoom_id() {
        return room_id;
    }

    public void setRoom_id(int room_id) {
        this.room_id = room_id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getTarget() {
        return target;
    }

    public void setTarget(int target) {
        this.target = target;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    @Override
    public String toString() {
        return "ChatMsgListRequest{" +
                "type=" + type +
                ", msgId='" + msgId + '\'' +
                ", target=" + target +
                ", gid=" + gid +
                '}';
    }
}
